Certified Kubernetes Administrator (CKA) Exam Guide by Mélony Qin

Certified Kubernetes Administrator (CKA) Exam Guide by Mélony Qin

Author:Mélony Qin
Language: eng
Format: epub
Publisher: Packt Publishing Ltd.
Published: 2022-10-07T00:00:00+00:00


Then, save your edits and quit Vim. Press the Esc key, type :wq! at the bottom of the editor, and then press Enter to take you back to the terminal:

Figure 5.7 – Saving the YAML definition in Vim

When you’re on the terminal, use the following command to deploy the .yaml file: kubectl apply -f pod-volume.yaml

Then, it should display a message that the pod has been created successfully, something similar to the following:

pod/my-volume-pod created

You can go ahead and check whether the pod is now running by using the kubectl get pods command and the command comes back with the following output:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.